<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <meta name="viewport" content="width=device-width,maximum-scale=1,minimum-scale=1,initial-scale=1">
    <title></title>
    
    <link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}" />
    <link rel="stylesheet" href="{{ asset('fonts/themify-icons.css') }}" />
    <link rel="stylesheet" href="{{asset('js/layer/css/layui.css')}}" />
    {{-- <link rel="stylesheet" href="{{asset('fonts/iconfont.css')}}" /> --}}
    <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4322727_vdz5f17t9pf.css" />
    <link rel="stylesheet" href="{{ asset('css/pc/metisMenu.min.css') }}" />
    <link rel="stylesheet" href="{{ asset('css/pc/main.css?v=' . time()) }}" />
    @yield('css')
</head>

<body class="pc-body">
    @include('layouts.pc.header')
    <div id="wrapper">
        @include('layouts.pc.slider')
        @yield('content')
    </div>
    @include('app.partials.site_notice')
    <script type="text/javascript" src="{{ config('app.url') }}/js/jquery.min.js"></script>
    <script type="text/javascript" src="{{ config('app.url') }}/js/metisMenu.min.js"></script>
    <script type="text/javascript" src="{{ config('app.url') }}/js/swiper.min.js"></script>
    <script type="text/javascript" src="{{ config('app.url') }}/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="{{ config('app.url') }}/js/layer/layui.js"></script>
    <script type="text/javascript" src="{{ config('app.url') }}/js/main.js"></script>

    <script>
        $(function() {
            // FastClick.attach(document.body);
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            })

            var is_alert_notice = parseInt('{{ isset($is_alert_notice) ? $is_alert_notice : 1 }}')
            $(".site_tips").click(function() {
                layer.open({
                    title: '预订流程说明',
                    content: $("#site_notice").html(),
                    scrollbar: false,
                    area: ['50%', '70%'],
                    skin: 'site_tips_layer',
                    btn: ['关闭'],
                    btnAlign: 'c',
                    btn1: function(index, layero, that){ layer.closeAll() }
                });
            })
            if (!is_alert_notice) {
                $(".site_tips").trigger('click')
            }
        })
        /*左侧导航*/
        $(function() {
            $('#menu1').metisMenu();
        });
        $(function() {
            $(".menunav li").mouseenter(function() {
                $(this).children(".sumbox").fadeIn();
            });
            $(".menunav li").mouseleave(function() {
                $(this).children(".sumbox").fadeOut();
            });
            $(".menunav li").click(function() {
                $(this).addClass("active").siblings().removeClass("active")
            })
        });
    </script>
    @yield('script')
</body>

</html>
